<?$this->load->view('personified/header');?>
<!-- start page -->
<div id="page">
	<!-- start content -->
	<div id="content">
		<!-- start latest-post -->
		
		<div id="latest-post" class="post">
			
		<?foreach ($this->mdl_posts->get(array('url_title'=>$this->uri->segment(3))) as $post) {?>
			
			<h1 class="title"><?=$post->title;?></h1>
			<p class="meta">Posted by <?=$post->display_name;?> on <?=date('F d, Y', $post->date);?>&nbsp;&nbsp;Filed under <?=$this->inktype->category_links($post, 'category');?> | <?=$this->inktype->anchor('post/' . $post->url_title, 'Comments (' . $post->num_comments . ')');?></p>
			<div class="entry">
				<?=$post->excerpt;?>

				<?=$post->extended;?>
			</div>
			
			<?}?>

			<h2>Leave a Comment</h2>

			<?$this->load->view('comment_form', array('post'=>$post));?>
			
			<h3>Comments</h3>
			
			<?foreach ($this->mdl_comments->get(array('post_id'=>$post->post_id)) as $comment) {?>

				<div class="bubble">
					<blockquote>
						<p><?=nl2br($comment->comment);?></p>
					</blockquote>
					<cite><strong><?=$comment->display_name;?></strong> <?=$this->inktype->format_date($comment->comment_date);?></cite>
				</div>
			
			<?}?>

		</div>
		<!-- end latest-post -->

		<?$this->load->view('personified/sidebar');?>

	</div>
	<!-- end content -->
<div style="clear: both;">&nbsp;</div>
<?//$this->load->view('personified/footbar');?>

<?$this->load->view('personified/footer');?>